package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author zhangyy
 * @since 2020-08-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_back")
public class OrderBackDo extends Model<OrderBackDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("shop_id")
    private Long shopId;

    @TableField("storage_id")
    private Long storageId;

    /**
     * 原出库订单号
     */
    @TableField("order_out_number")
    private String orderOutNumber;

    /**
     *
     * 申请延期 0 未申请 1申请中 2申请成功 3 未同意
     */
    @TableField("apply_extension")
    private int applyExtension;

    /**
     * 联系人
     */
    @TableField("contact_name")
    private String contactName;

    /**
     * 联系方式
     */
    @TableField("tel_phone")
    private String telPhone;

    /**
     * 追踪号
     */
    @TableField("track_number")
    private String trackNumber;

    /**
     * 快递公司
     */
    @TableField("track_name")
    private String trackName;

    /**
     * 操作费
     */
    @TableField("operate_fee")
    private Double operateFee;
    @TableField("drop_fee")
    private Double dropFee;
    /**
     * 状态
     */
    @TableField("status")
    private Long status;
    /**
     * 出单处理结果
     */
    @TableField("back_result")
    private Long backResult;
    /**
     * 附件
     */
    @TableField("file_id")
    private Long fileId;

    @TableField("product_file_id")
    private String productFileId;


    @TableField("double_check_file_id")
    private String doubleCheckFileId;

    /**
     * 手续费
     */
    @TableField("tax_fee")
    private Double taxFee;

    /**
     * 运输费
     */
    @TableField("ship_fee")
    private Double shipFee;

    /**
     * 到货日期
     */
    @TableField("arrival_time")
    private Date arrivalTime;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("company_id")
    private Long companyId;
    @TableField("tips")
    private String tips;
    /**
     * 处理日期
     */
    @TableField("deal_date")
    private Date dealDate;
    //逾期未处理废弃时间
    @TableField("last_date")
    private Date lastDate;
    //最后保管日期
    @TableField("overdue_date")
    private Date overdueDate;
    //是否开箱
    @TableField("open_box")
    private int openBox;
    //是否能贩卖
    @TableField("can_sale")
    private int canSale;

    @TableField("has_fee")
    private int hasFee;

    @TableField("deduct_fee")
    private int deductFee;

    @TableField("double_check")
    private int doubleCheck;
    @TableField("pre_operate_time")
    private int preOperateTime;
    @TableField("real_operate_time")
    private int realOperateTime;
    @TableField("operate_file_id")
    private Long operateFileId;
    @TableField("track_id")
    private Long trackId;
    @TableField("indicate_time")
    private Date indicateTime;
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
